package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class RankFunctionType {

    private int beginIndex;
    private int endIndex;
    private boolean rank;
    private boolean denseRank;
    private boolean percentRank;
    private boolean cumeDist;

    public RankFunctionType(int beginIndex,
                            int endIndex,
                            boolean rank,
                            boolean denseRank,
                            boolean percentRank,
                            boolean cumeDist) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.rank = rank;
        this.denseRank = denseRank;
        this.percentRank = percentRank;
        this.cumeDist = cumeDist;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isRank() {
        return rank;
    }

    public boolean isDenseRank() {
        return denseRank;
    }

    public boolean isPercentRank() {
        return percentRank;
    }

    public boolean isCumeDist() {
        return cumeDist;
    }

}
